package top.laoshuzi.designpatterns.base.behavior.strategy;

/**
 * 环境
 */
public class Context {

    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void operationAlgorithm() {
        strategy.algorithm();
    }
}
